eig — Eigen Decomposition


\begin{rail}
Eigen : 'eig' '(' ( Matrix \vert Matrix ',' Matrix ) ')' ;
\end{rail}
eig with a single square argument matrix computes that matrix's eigenvectors and eigenvalues. The results are returned as a list with elements val and vec which are the eigenvalues and right eigenvectors respectively. In general, these will be complex quantities. eig with two arguments computes the eigenvectors and eigenvalues of the real generalized symmetric ( or complex generalized Hermitian) definite eigenproblem. The eigenvalues and eigenvectors are returned in a list as for the first form. If the two arguments are A and B, the eigenproblem is defined by

Ax = λBx

Both forms of eig check for symmetry, and use an appropriate solver.

Subsections